﻿<div class="form-group " data-bind="css: { 'has-error': code.hasError }">
    <label> Idno </label>
    <input type="text" class="form-control" data-bind="value: idnp, hasFocus: true" />
    <span class="help-block" data-bind="visible: value.hasError, text: value.validationMessage "></span>
</div>
<div class="form-group" data-bind="css: { 'has-error': firstName.hasError }">
    <label> First Name </label>
    <input type="text" class="form-control" data-bind="value: firstName" />
    <span class="help-block" data-bind="visible: firstName.hasError, text: firstName.validationMessage "></span>
</div>
<div class="form-group" data-bind="css: { 'has-error': lastName.hasError }">
    <label> Last Name </label>
    <input type="text" class="form-control" data-bind="value: lastName" />
    <span class="help-block" data-bind="visible: firstName.hasError, text: lastName.validationMessage "></span>
</div>